home *** CD-ROM | disk | FTP | other *** search
- on mouseEnter
- if the visible of window "Help" then
- tell window "help"
- go("menuSong7")
- end tell
- end if
- end
-
- on mouseLeave
- if the visible of window "Help" then
- tell window "help"
- go("start")
- end tell
- end if
- end
-
- on mouseUp
- global gSong, gClick, gPath, gInfo
- if not (the visible of window "Help") then
- if (line the mouseLine of field "fieldElencoSongHD" <> EMPTY) and (the number of words in line the mouseLine of field "fieldElencoSongHD" = 1) then
- set linea to the mouseLine
- set the foreColor of member "fieldElencoSongHD" to 0
- set the foreColor of line linea of field "fieldElencoSongHD" to 14
- set gClick to EMPTY
- if gSong <> EMPTY then
- stop(member "preview")
- end if
- set song to line linea of field "fieldElencoSongHD"
- set fileTxt to ":info.gms"
- set temp to IKCryptOpen(gPath & "song:song22:" & song & fileTxt)
- set gInfo to EMPTY
- set stringTemp to IKCryptGets(temp)
- repeat while stringTemp <> "**********"
- set gInfo to gInfo & stringTemp & RETURN
- set stringTemp to IKCryptGets(temp)
- end repeat
- IKCryptClose(temp)
- delete char -30003 of gInfo
- delete char -30003 of gInfo
- set serial to chars(the last line in gInfo, 3, length(the last line in gInfo))
- if serial = "000000" then
- set gSong to song
- delete char -30003 of gInfo
- set primaLinea to chars(line the number of lines in gInfo - 1 of gInfo, 3, length(line the number of lines in gInfo - 1 of gInfo))
- if the last word in primaLinea = "Demo" then
- set secondaLinea to chars(the last line in gInfo, 3, length(the last line in gInfo))
- put primaLinea & RETURN & secondaLinea into field "fieldDescription"
- set the textFont of member "fieldDescription" to "Helvetica"
- set the textSize of member "fieldDescription" to 10
- set the foreColor of member "fieldDescription" to 0
- put chars(line the number of lines in gInfo - 4 of gInfo, 3, length(line the number of lines in gInfo - 4 of gInfo)) into field "fieldBpm"
- set the textFont of member "fieldBpm" to "GMfont"
- set the foreColor of member "fieldBpm" to 54
- set the volume of member "preview" to 255 * integer(field "fieldMasterVol") / 128
- set the url of member "preview" to gPath & "song:song22:" & gSong & ":preview.swa"
- play frame member "preview"
- else
- set the foreColor of member "fieldElencoSongHD" to 0
- put EMPTY into field "fieldDescription"
- put EMPTY into field "fieldBpm"
- openWin("Message")
- tell window "Message"
- go("17")
- end tell
- set gSong to EMPTY
- end if
- else
- set the foreColor of member "fieldElencoSongHD" to 0
- put EMPTY into field "fieldDescription"
- put EMPTY into field "fieldBpm"
- openWin("Message")
- tell window "Message"
- go("17")
- end tell
- set gSong to EMPTY
- end if
- end if
- end if
- end
-